package com.zhr.business.sys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhr.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
@Data
@TableName(value = "t_sys_goods", autoResultMap = true)
public class SysGoods implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "good_id", type = IdType.AUTO)
    @Schema(description = "商品ID")
    private Long id;
    @Schema(description = "商品名")
    private String goodName;
    @Schema(description = "商品介绍")
    private String goodDescription;
    @Schema(description = "商品价格")
    private String goodPrice;
    @Schema(description = "商品库存")
    @TableField( value = "good_stockquantity")
    private int goodStockQuantity;
    @Schema(description = "商品图地址")
    @TableField(value = "good_imgurl")
    private String goodImgUrl;
    @Schema(description = "商品分类")
    private String goodCategory;
    @Schema(description = "商品创建时间")
    private String goodCreatedat;
    @Schema(description = "商品更新时间")
    private String goodUpdatedat;
    @Schema(description = "状态：1-可用，2-禁用", example = "1")
    @TableField(value = "good_status")
    private String status;
}
